<template>
  
</template>

<script>
import {setToken} from '@/utils/auth'
export default {
  name: 'autoLogin',
  data() {
    return {
      
    }
  },
  created(){
    let geturl = window.location.href
    let getqyinfo = geturl.split('?')[1] 
    let getqys = getqyinfo.split('&')  
    let data = {
      accessToken:getqys[0].split('=')[1],
      refreshToken:getqys[1].split('=')[1]
    }
    setToken(data)
    this.$router.push('/')
  },
  methods: {
    
  }
}
</script>

<style lang="scss" scoped>

</style>
